/*    */ package com.qmsk.business.member.bussbillpaycheck.controller;
/*    */ 
/*    */ import com.qmsk.business.member.bussbillpaycheck.dao.BussBillPayCheckDao;
/*    */ import com.qmsk.business.member.bussbillpaypos.dao.BussBillPayPosDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import com.utils.web.RequestUtils;
/*    */ import com.utils.web.ResponseUtils;
/*    */ import java.sql.SQLException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.PathVariable;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/bussBillPayChk"})
/*    */ public class BussBillPayCheckController
/*    */ {
/* 27 */   private static final Logger logger = Logger.getLogger(BussBillPayCheckController.class);
/*    */ 
/*    */   @Autowired
/*    */   private BussBillPayCheckDao checkDao;
/*    */ 
/*    */   @Autowired
/*    */   private BussBillPayPosDAO posDao;
/*    */ 
/*    */   @RequestMapping(value={"find/id/{id}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getListBussBillId(HttpServletRequest request, HttpServletResponse response, @PathVariable("id") Long BussId)
/*    */   {
/*    */     try
/*    */     {
/* 48 */       GsonEbRst gsonEbRst = this.checkDao.getGsonOfId(BussId);
/* 49 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 51 */       logger.error(e);
/* 52 */       ResponseUtils.setErrorMsgResponse(
/* 53 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ 
/*    */   @RequestMapping(value={"find/id/{id}/type/{type}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getListBussBillId(HttpServletRequest request, HttpServletResponse response, @PathVariable("id") Long BussId, @PathVariable("type") Integer type)
/*    */   {
/*    */     try
/*    */     {
/* 72 */       GsonEbRst gsonEbRst = null;
/* 73 */       if (type.intValue() == 1)
/* 74 */         gsonEbRst = this.checkDao.getGsonOfId(BussId);
/*    */       else {
/* 76 */         gsonEbRst = this.posDao.getGsonOfId(BussId);
/*    */       }
/* 78 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 80 */       logger.error(e);
/* 81 */       ResponseUtils.setErrorMsgResponse(
/* 82 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.member.bussbillpaycheck.controller.BussBillPayCheckController
 * JD-Core Version:    0.5.3
 */